package cn.com.zero.manager.auth.service.impl;

import cn.com.zero.api.auth.vo.LockedUserVO;
import cn.com.zero.common.auth.service.impl.AbstractLockedUserService;
import cn.com.zero.manager.auth.mapper.IManagerLockedUserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author guoxin
 * @version 1.0.0
 * @Description
 * @date 2023/4/3 11:00
 */
@Service
public class ManagerLockedUserService extends AbstractLockedUserService {

    private IManagerLockedUserMapper managerLockedUserMapper;

    @Override
    protected Map<String, LockedUserVO> getUsers(List<String> userIds) {
        Map<String, LockedUserVO> lockedUsersDetailInfo = managerLockedUserMapper.getLockedUsersDetailInfo(userIds);
        return lockedUsersDetailInfo;
    }

    @Override
    protected Integer deleteErrorLoginLog(String userId) {
        return managerLockedUserMapper.DeleteErrorLogin(userId);
    }

    @Autowired
    public void setManagerLockedUserMapper(IManagerLockedUserMapper managerLockedUserMapper) {
        this.managerLockedUserMapper = managerLockedUserMapper;
    }
}
